package com.ysx.ch02;

import org.springframework.stereotype.Component;

@Component
public class Cal implements  C{

    public int add(int x, int y){
        int sum = x+y;
        System.out.println("sum="+sum);
        return sum;
    }


    public int sub(int x, int y){
        int sub = x-y;
        return sub;
    }

}
